package token;

public class Token {
    public TokenType type;
    public Object value = null;

    public Token() {}

    public Token(TokenType tokenType, Object value){
        this.type = tokenType;
        this.value = value;
    }

    public enum TokenType {
        INTEGER, PLUS, MINUS, MUL, DIV, LPAREN, RPAREN, EOF,
        BEGIN, END, ID, ASSIGN, SEMI, DOT
    }

    @Override
    public String toString() {
        return "Token{" +
                "type='" + type + '\'' +
                ", value=" + value +
                '}';
    }
}
